package com.cloudpan.entity.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.Version;

import java.time.LocalDateTime;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableField;

import java.io.Serializable;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 *
 * </p>
 *
 * @author Code Generator
 * @since 2024-01-27
 */
@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value = "SysUserMessage对象", description = "")
public class SysUserMessage implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "id")
    @TableId(value = "id", type = IdType.ASSIGN_ID)
    private String id;

    @ApiModelProperty(value = "发送者id")
    private String fromId;

    @ApiModelProperty(value = "接收者id")
    private String toId;

    @ApiModelProperty(value = "发送的内容")
    private String textMessage;

    @ApiModelProperty(value = "是否为离线消息")
    private String offMsg;

    @ApiModelProperty(value = "创建时间(发送时间)")
    private LocalDateTime createTime;

    @ApiModelProperty(value = "0 未删除 1 删除")
    @TableLogic
    private String delFlag;


}
